#include<func.h>

int main()
{
    printf("pid=%d ppid=%d uid=%d gid=%d euid=%d egid=%d\n",getpid(),getppid(),getuid(),getgid(),geteuid(),getegid());
    int fd;
    fd=open("file",O_RDWR);
    ERROR_CHECK(fd,-1,"open");
    write(fd,"I can write",11);
    return 0;
}